<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* .demo {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        } */
        .demo {
            display: -webkit-box;
            overflow: hidden;
            -webkit-line-clamp:2;
            -webkit-box-orient: vertical;
        }
    </style>
</head>
<body>
    <!-- nowrap
    溢出 ... text-overflow :elipisis
    多行超出 -webit-line-clamp -->
    <div class="demo">
        gch啊哈哈哈哈哈哈哈哈gch啊哈哈哈哈哈哈哈哈gch啊哈哈哈哈哈哈哈哈gch啊哈哈哈哈哈哈哈哈
    </div>
</body>
</html>